package edu.sctu.wujiayi.month05.day20150512;

/**
 * Created by user11 on 2015/5/12.
 */
public class AbsractOne {
    public static void main(String[] args) {
//       AbsractThree abstractthree = new AbsractThree();
//
//       AbsractFour abstractfour = new AbsractFour();
//
//       abstractthree.getName("组长");
//
//       abstractthree.getSex("male");
//
//       abstractthree.getNumber(1406);
//
//        abstractfour.getName("雪雪");
//
//       abstractfour.getSex("female");
//
//        abstractfour.getNumber(1407);





        AbstractEight[] a = new AbstractEight[10];

        for(int i = 0;i<a.length;i++){
            AbstractEight abstracteight = new AbstractEight();

            abstracteight.setName("宋玉"+i);

            abstracteight.setAge(18+i);

            abstracteight.setGrade(56+i);

            abstracteight.setSex("男"+i);

            abstracteight.setNumber(1406+i);

            abstracteight.setAddress("成都市");

            a[i] = abstracteight;

        }
        AbstractSeven abstractseven = new AbstractSeven(a);
        AbstractEight[] b = new AbstractSeven(a).getInformation();
        AbstractSix abstractsix = new AbstractSix(a);
        AbstractEight[] c = new AbstractSix(a).getInformation();
        for(int i = 0;i<a.length;i++){

            if(b[i] != null|| c[i] != null){
                System.out.println(abstractsix.a[i].getName()+" "+abstractsix.a[i].getAge()+" "+abstractsix.a[i].getGrade()+" "+abstractsix.a[i].getAddress());

                System.out.println(abstractseven.a[i].getNumber()+" "+abstractseven.a[i].getGrade()+" "+abstractseven.a[i].getName());

            }
        }





//        abstractsix.getInformation();
//
//        abstractseven.getInformation();

//        abstractsix.judgeMent(22);
//
//        abstractseven.judgeMent(22);
//
//        System.out.println(a);




    }
}
